package com.geeaks.learn.config;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import com.geeaks.learn.config.bean.Course;

public class Demo {
	
	public static void main(String[] args) {
		ApplicationContext ctx = new AnnotationConfigApplicationContext(AppContext.class);
		Course course = ctx.getBean(Course.class);
		String name = course.getName();
		System.out.println(name);
	}
}
